<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新增医院信息</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
	font-size:12px;
}
a{
	color:#333;
	text-decoration:none;
	}
dl{
	border:1px #90A2AE solid;
	padding:10px;
	margin:10px;
	background:#F2F5F7;
	}
dt{
	height:30px;
	background:#8BA2B9;
	display:block;
	clear:both;
	border-top:1px #D1DAE3 solid;
	}
dd{
	border:1px #D1DAE3 solid;
	border-top:0px;
	border-bottom:0px;
	padding:5px 0px 5px 20px;
	margin-left:0px;
	display:block;
	clear:both;
	background:#F5F7FA;
	}
p{
	margin:10px;
	font-size:14px;
	font-weight:bold;
	background:url(<?php echo $baseurl ?>images/admin_image/icon_top.jpg) left center no-repeat;
	padding-left:18px;
	}
span{

	display:block;
	height:18px;}
-->
</style>
</head>

<body>
 <script language = "JavaScript">  
 function checkdata() {
	if( document.form1.name.value=='') {
		alert("\医院名称不能为空！");
		document.form1.name.focus();
		return false;
		}
	if( document.form1.bednum.value=='') {
		alert("\床位数不能为空！");
		document.form1.bednum.focus();
		return false;
		}
	if( document.form1.intro.value=='') {
		alert("\医院简介不能为空！");
		document.form1.intro.focus();
		return false;
		}
	if( document.form1.userfile.value!='') {
		document.form1.fileisok.value=0;
		}
	return true;
	}
 </script>
<div><form action="<?php echo $action;?>" method="post" name="form1" enctype="multipart/form-data" onsubmit="return checkdata();" >
<p class="text">新增医院信息</p>
<dl>
  <dd style="border-top:1px #D1DAE3 solid;padding-top:15px;">
    <span>医院名称：</span><input name="name" type="text" maxlength="25" style="width:220px;"/> 
    * 必填项</dd>
<dd>
  <span>医院信息（性质级别—床位数）：</span>
      <select name="rank">
      <?php foreach ($rank as $r){?>
        <option value="<?php echo $r['Id'] ?>"><?php echo $r['rankname'] ?></option>
        <?php }?>
      </select>
    &nbsp;<input name="bednum" type="text" maxlength="4" style="width:60px;"/> 
    *必填项，床位数只能为数字
</dd>
<dd>
  <span>医院网站：</span>
    <input name="website" type="text" maxlength="50" style="width:220px;" value="http://"/> 
    *选填项
</dd>
<dd>
  <span>医院形象图片：</span>
    <input name="userfile" type="file"/>
     （JPG或GIF格式，文件不得大于300K）
	<input name="fileisok" type="hidden" value="">
</dd>
<dd>
<span>编者评论（100字以内，关于医院特色等简要评论）：</span>
  <textarea name="brief" cols="" rows="3" style="width:500px;height:50px;"></textarea>
</dd>
<dd><span>医院简介（必填项，字数不限）：</span>
  <textarea name="intro" cols="" rows="3" style="width:500px;height:50px;"></textarea>
</dd>
<dd><span>医院优惠项目简介（必填项，字数不限）：</span>
  <textarea name="vip" cols="" rows="3" style="width:500px;height:50px;"></textarea>
</dd>
<dd style="height:50px;">
  <div style="width:420px;float:left"><span>医院联系方式（地址—电话—公交线路）：</span>
    <input name="address" type="text" maxlength="80" style="width:120px;"/>&nbsp;
    <input name="contact" type="text" maxlength="80" style="width:120px;"/>&nbsp;
    <input name="busline" type="text" maxlength="80" style="width:120px;"/></div>
    <div style="width:90px;float:left;padding-top:5px;padding-left:10px;">
    <input name="submit1" type="submit" value="增加医院" style="height:40px;width:80px;line-height:40px;" />
    </div>
</dd>
<dd style="border-bottom:1px #D1DAE3 solid;"></dd>
</dl>
</form>
</div>

</body>
</html>
